<table>
    <thead>
        <tr>
            <th>月份</th>
            <th>进仓金额</th>
            <th>出仓金额</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    @for($i = 1; $i <= 12; $i++)
        <tr>
            <td>{{$i}}月</td>
            {{--  判断出仓原料是否为空 --}}
            <td>{{Arr::get($input, $i, 0)}}</td>
            <td>{{Arr::get($output, $i, 0)}}</td>
            <!-- <td>0</td> -->
        </tr>
    @endfor
        <tr>
            <td>合计</td>
            <td>{{$input->sum('price') / 100}}</td>
            <td>{{$output->sum('price') / 100}}</td>
        </tr>
    </tbody>
</table>